package com.hzqiuxm.tdddemo001.jinggame2;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Copyright © 2020年 tdd-demo-001. All rights reserved.
 *
 * @author 临江仙 hzqiuxm@163.com
 * 保存井字游戏信息
 * @date 2020/8/18 13:45
 */
@Data
@Document("game")
public class TicTacToeBean {


    /**
     * 轮次
     */
    @Id
    private int turn;
    /**
     * X轴坐标
     */
    private int x;
    /**
     * Y轴坐标
     */
    private int y;
    /**
     * 玩家
     */
    private char player;


    public TicTacToeBean(int turn, int x, int y, char player) {
        this.turn = turn;
        this.x = x;
        this.y = y;
        this.player = player;
    }
}
